package com.github.pig.admin.model.zhgl.propertyassess;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

/**
 * <p>
 * 物业人员评价表
 * </p>
 *
 * @author xiaosa
 * @since 2018-06-11
 */
@TableName("property_assess")
public class PropertyAssess extends Model<PropertyAssess> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    private String id;
    /**
     * 物业人ID
     */
    @TableField("property_user_id")
    private String propertyUserId;
    /**
     * 评价时间
     */
    @TableField("assess_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date assessDate;
    /**
     * 评价人
     */
    @TableField("assess_user")
    private String assessUser;
    /**
     * 评语
     */
    private String comment;
    /**
     * 是否获赞0未获 1获得
     */
    @TableField("is_praise")
    private String isPraise;
    /**
     * 备注
     */
    private String bz;
    /**
     * 删除标志
     */
    @TableField("del_flag")
    private String delFlag;

    @TableField("community_id")
    private String communityId;
    @TableField("unit_id")
    private String unitId;
    @TableField("house_id")
    private String houseId;
    @TableField("building_id")
    private String buildingId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPropertyUserId() {
        return propertyUserId;
    }

    public void setPropertyUserId(String propertyUserId) {
        this.propertyUserId = propertyUserId;
    }

    public Date getAssessDate() {
        return assessDate;
    }

    public void setAssessDate(Date assessDate) {
        this.assessDate = assessDate;
    }

    public String getAssessUser() {
        return assessUser;
    }

    public void setAssessUser(String assessUser) {
        this.assessUser = assessUser;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getIsPraise() {
        return isPraise;
    }

    public void setIsPraise(String isPraise) {
        this.isPraise = isPraise;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PropertyAssess{" +
                ", id=" + id +
                ", propertyUserId=" + propertyUserId +
                ", assessDate=" + assessDate +
                ", assessUser=" + assessUser +
                ", comment=" + comment +
                ", isPraise=" + isPraise +
                ", bz=" + bz +
                ", delFlag=" + delFlag +
                "}";
    }
}